home *** CD-ROM | disk | FTP | other *** search
/ Apple Reference & Presen…tion Library 4 (Reseller) / Apple Ref. & Pres. Lib.v4.0.iso / 6-Apple⁄DEC Alliance / Solutions & Networking Guide / Macintosh Networking Guide / Macintosh Networking Guide / card_10250.txt < prev    next >
Text File  |  1990-04-17  |  9KB  |  374 lines

  1. -- card: 10250 from stack: in
  2. -- bmap block id: 11017
  3. -- flags: 0000
  4. -- background id: 2585
  5. -- name: elevatorKlosed
  6. ----- HyperTalk script -----
  7. --on openCard
  8. global env, currentFloor, nextFloor
  9. set lockScreen to true
  10. put env into EnvTemp
  11. if Env is "Mac" then put "Macintosh" into EnvTemp
  12. put envTemp into cd field "EnvName"
  13. put currentFloor into cd fld "currentFloor"
  14. --‚àÜ Set lights over door
  15. set the hilite of btn "3  Applications" to false
  16. set the hilite of btn "2  Network Services" to false
  17. set the hilite of btn "1  Hardware" to false
  18. set the hilite of btn "0  Lobby" to true
  19. --‚àÜ Set destination indicator
  20. hide cd btn "3  ApplicationsHiliter"
  21. hide cd btn "2  Network ServicesHiliter"
  22. hide cd btn "1  HardwareHiliter"
  23. hide cd btn "0  LobbyHiliter"
  24. show cd btn (nextFloor & "Hiliter")
  25. unlock screen with visual barn door close
  26. pass openCard
  27. --end openCard
  28.  
  29.  
  30.  
  31. -- part 8 (field)
  32. -- low flags: 00
  33. -- high flags: 0002
  34. -- rect: left=177 top=0 right=23 bottom=333
  35. -- title width / last selected line: 0
  36. -- icon id / first selected line: 0 / 0
  37. -- text alignment: 1
  38. -- font id: 156
  39. -- text size: 18
  40. -- style flags: 16384
  41. -- line height: 21
  42. -- part name: CurrentFloor
  43.  
  44.  
  45. -- part 10 (field)
  46. -- low flags: 01
  47. -- high flags: 2002
  48. -- rect: left=3 top=133 right=192 bottom=127
  49. -- title width / last selected line: 0
  50. -- icon id / first selected line: 0 / 0
  51. -- text alignment: 0
  52. -- font id: 156
  53. -- text size: 10
  54. -- style flags: 16384
  55. -- line height: 13
  56. -- part name: Destination
  57. ----- HyperTalk script -----
  58. --on mouseDown
  59. global floor,currentFloor,nextFloor
  60. --‚àÜ Move to chosen level/floor
  61. --set the lockscreen to true
  62. put character 1 of nextFloor into floorDestination
  63. repeat with x = (floor + 1) to floorDestination
  64.   ElevatorAction --‚àÜ In the stack script.
  65.   --wait 80
  66. end repeat
  67. play "22"
  68. if currentFloor is "0  Lobby" then
  69.   go to cd "elevatorOpen"
  70. else
  71.   go to cd "elevatorOpenHall"
  72. end if
  73. --end mouseDown
  74.  
  75.  
  76. --‚àÜ lobby is floor 0,
  77. --‚àÜ foundation is floor 1, network services is 2, app is 3.
  78. global floor,nextFloor,lastFloor,currentFloor
  79. if floor < floorDestination then
  80.   repeat with x = (floor + 1) to floorDestination
  81.     set lockscreen to true
  82.     put line x of cd fld "Destination" into currentFloor
  83.     put currentFloor into cd fld "currentFloor"
  84.     --if lastFloor is not empty then
  85.     --set the highlite of cd button lastFloor to false
  86.     --set the highlite of cd button (lastFloor & "hiliter") to false
  87.     --hide cd button (lastFloor & "hiliter")
  88.     --end if
  89.     set the highlite of cd button currentFloor to true
  90.     --set the highlite of cd button (currentFloor & "hiliter") to true
  91.     --show cd button (currentFloor & "hiliter")
  92.     --put currentFloor into lastFloor
  93.     unlock screen with visual effect wipe up
  94.     wait 60
  95.   end repeat
  96.   put nextFloor into floor
  97. end if
  98.  
  99.  
  100. --‚àÜ Set lights over door
  101. set the hilite of btn "3  Applications" to false
  102. set the hilite of btn "2  Network Services" to false
  103. set the hilite of btn "1  Hardware" to false
  104. set the hilite of btn "0  Lobby" to true
  105. --put currentFloor into cd field "currentFloor"
  106. show cd btn (currentFloor & "hiliter")
  107.  
  108. set the hilite of btn "3  Applications" to false
  109. set the hilite of btn "2  Network Services" to false
  110. set the hilite of btn "1  Hardware" to false
  111. set the hilite of btn "0  Lobby" to false
  112. set the hilite of button currentfloor to true
  113. put currentfloor into cd field "currentfloor"
  114. play "22"
  115. unlock screen with visual barn door open
  116. wait 5
  117. set lockscreen to true
  118. set cursor to busy
  119. go to cd "hallway1"
  120.  
  121.  
  122.  
  123.  
  124. -- part 11 (button)
  125. -- low flags: 00
  126. -- high flags: 2000
  127. -- rect: left=178 top=23 right=35 bottom=193
  128. -- title width / last selected line: 0
  129. -- icon id / first selected line: 0 / 0
  130. -- text alignment: 1
  131. -- font id: 0
  132. -- text size: 12
  133. -- style flags: 0
  134. -- line height: 16
  135. -- part name: 0  Lobby
  136.  
  137.  
  138. -- part 12 (button)
  139. -- low flags: 00
  140. -- high flags: 2000
  141. -- rect: left=222 top=23 right=35 bottom=237
  142. -- title width / last selected line: 0
  143. -- icon id / first selected line: 0 / 0
  144. -- text alignment: 1
  145. -- font id: 0
  146. -- text size: 12
  147. -- style flags: 0
  148. -- line height: 16
  149. -- part name: 1  Hardware
  150.  
  151.  
  152. -- part 13 (button)
  153. -- low flags: 00
  154. -- high flags: 2000
  155. -- rect: left=270 top=23 right=35 bottom=285
  156. -- title width / last selected line: 0
  157. -- icon id / first selected line: 0 / 0
  158. -- text alignment: 1
  159. -- font id: 0
  160. -- text size: 12
  161. -- style flags: 0
  162. -- line height: 16
  163. -- part name: 2  Network Services
  164.  
  165.  
  166. -- part 14 (button)
  167. -- low flags: 00
  168. -- high flags: 6000
  169. -- rect: left=317 top=23 right=35 bottom=332
  170. -- title width / last selected line: 0
  171. -- icon id / first selected line: 0 / 0
  172. -- text alignment: 1
  173. -- font id: 0
  174. -- text size: 12
  175. -- style flags: 0
  176. -- line height: 16
  177. -- part name: 3  Applications
  178.  
  179.  
  180. -- part 15 (button)
  181. -- low flags: 00
  182. -- high flags: 0000
  183. -- rect: left=396 top=105 right=171 bottom=482
  184. -- title width / last selected line: 0
  185. -- icon id / first selected line: 0 / 0
  186. -- text alignment: 1
  187. -- font id: 0
  188. -- text size: 12
  189. -- style flags: 0
  190. -- line height: 16
  191. -- part name: kiosk
  192. ----- HyperTalk script -----
  193. on mouseUp
  194.   set lockscreen to true
  195.   put empty into field "Explainer"
  196.   push card
  197.   go to cd "kiosk"
  198.   unlock screen with dissolve
  199. end mouseUp
  200.  
  201. on mouseEnter
  202.   show field "Explainer"
  203.   put "This is the 'Information Kiosk'. " && return && return && "It will help you to understand what products will work " && "with each other and provide ready access to the help and " && "lobby locations." into field "Explainer"
  204.   pass mouseEnter
  205. end mouseEnter
  206.  
  207. on mouseDown
  208.   Global ButtonSND
  209.   play ButtonSND
  210. end mouseDown
  211.  
  212. on mouseLeave
  213.   hide field "Explainer"
  214. end mouseLeave
  215.  
  216.  
  217.  
  218.  
  219. -- part 23 (field)
  220. -- low flags: 01
  221. -- high flags: 0002
  222. -- rect: left=3 top=105 right=128 bottom=127
  223. -- title width / last selected line: 0
  224. -- icon id / first selected line: 0 / 0
  225. -- text alignment: 1
  226. -- font id: 156
  227. -- text size: 14
  228. -- style flags: 16640
  229. -- line height: 18
  230. -- part name: EnvName
  231.  
  232.  
  233. -- part 33 (button)
  234. -- low flags: 80
  235. -- high flags: 4000
  236. -- rect: left=4 top=164 right=178 bottom=126
  237. -- title width / last selected line: 0
  238. -- icon id / first selected line: 0 / 0
  239. -- text alignment: 1
  240. -- font id: 0
  241. -- text size: 12
  242. -- style flags: 0
  243. -- line height: 16
  244. -- part name: 1  HardwareHiliter
  245. ----- HyperTalk script -----
  246. on mouseEnter
  247.   global Help
  248.   put "Level Indicator" & return & "you are now at this level" into fld "Tell"
  249.   changeCurs 6069
  250. end mouseEnter
  251.  
  252. on mouseleave
  253.   put empty into fld "Tell"
  254.   changeCurs 69
  255. end mouseLeave
  256.  
  257.  
  258.  
  259. -- part 34 (button)
  260. -- low flags: 80
  261. -- high flags: 4000
  262. -- rect: left=4 top=177 right=191 bottom=126
  263. -- title width / last selected line: 0
  264. -- icon id / first selected line: 0 / 0
  265. -- text alignment: 1
  266. -- font id: 0
  267. -- text size: 12
  268. -- style flags: 0
  269. -- line height: 16
  270. -- part name: 0  LobbyHiliter
  271. ----- HyperTalk script -----
  272. on mouseEnter
  273.   global Help
  274.   put "Level Indicator" & return & "you are now at this level" into fld "Tell"
  275.   changeCurs 6069
  276. end mouseEnter
  277.  
  278. on mouseleave
  279.   put empty into fld "Tell"
  280.   changeCurs 69
  281. end mouseLeave
  282.  
  283.  
  284.  
  285. -- part 35 (button)
  286. -- low flags: 80
  287. -- high flags: 4000
  288. -- rect: left=4 top=151 right=165 bottom=126
  289. -- title width / last selected line: 0
  290. -- icon id / first selected line: 0 / 0
  291. -- text alignment: 1
  292. -- font id: 0
  293. -- text size: 12
  294. -- style flags: 0
  295. -- line height: 16
  296. -- part name: 2  network serviceshiliter
  297. ----- HyperTalk script -----
  298. on mouseEnter
  299.   global Help
  300.   put "Level Indicator" & return & "you are now at this level" into fld "Tell"
  301.   changeCurs 6069
  302. end mouseEnter
  303.  
  304. on mouseleave
  305.   put empty into fld "Tell"
  306.   changeCurs 69
  307. end mouseLeave
  308.  
  309.  
  310.  
  311. -- part 38 (button)
  312. -- low flags: 00
  313. -- high flags: 4000
  314. -- rect: left=4 top=138 right=152 bottom=126
  315. -- title width / last selected line: 0
  316. -- icon id / first selected line: 0 / 0
  317. -- text alignment: 1
  318. -- font id: 0
  319. -- text size: 12
  320. -- style flags: 0
  321. -- line height: 16
  322. -- part name: 3  ApplicationsHiliter
  323. ----- HyperTalk script -----
  324. on mouseEnter
  325.   global Help
  326.   put "Level Indicator" & return & "you are now at this level" into fld "Tell"
  327.   changeCurs 6069
  328. end mouseEnter
  329.  
  330. on mouseleave
  331.   put empty into fld "Tell"
  332.   changeCurs 69
  333. end mouseLeave
  334.  
  335.  
  336.  
  337. -- part 39 (field)
  338. -- low flags: 00
  339. -- high flags: 0000
  340. -- rect: left=0 top=0 right=28 bottom=175
  341. -- title width / last selected line: 0
  342. -- icon id / first selected line: 0 / 0
  343. -- text alignment: 0
  344. -- font id: 156
  345. -- text size: 18
  346. -- style flags: 2048
  347. -- line height: 24
  348. -- part name: 
  349.  
  350.  
  351. -- part contents for card part 10
  352. ----- text -----
  353. 3  Applications
  354. 2  Network Services
  355. 1  Hardware
  356. 0  Lobby
  357.  
  358. -- part contents for card part 23
  359. ----- text -----
  360. Digital
  361.  
  362. -- part contents for card part 39
  363. ----- text -----
  364.   Inside Elevator
  365.  
  366. -- part contents for card part 8
  367. ----- text -----
  368. 3  Applications
  369.  
  370. -- part contents for background part 18
  371. ----- text -----
  372. This is the 'Information Kiosk'.  
  373.  
  374.  It will help you to understand what products will work  with each other and provide ready access to the help and  lobby locations.